package com.oa.business.acc.dto;


import com.oa.common.DomainDto;
import com.oa.framework.acc.account.domain.AccountPrincipal;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class PrincipalDto implements DomainDto<AccountPrincipal> {

    private Long principalId;

    private transient Long departmentId;

    private transient Long dutyId;

    @Override
    public AccountPrincipal transform() {
        AccountPrincipal principal = new AccountPrincipal();
        principal.setPrincipalId(principalId);
        principal.setDepartmentId(departmentId);
        principal.setDutyId(dutyId);
        return principal;
    }
}
